﻿using System;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Windows;
using System.Windows.Media.Media3D;
using System.Xml;

namespace KDG.FoldersSize4
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application
	{
		protected override void OnStartup(StartupEventArgs e)
		{
			//base.OnStartup(e);
//			Scanner sc = new Scanner();
//			sc.RunWorkerAsync(@"C:\Documents and Settings\XPMUser\My Documents\SharpDevelop Projects\testGoogleSpeach");
//			sc.RunWorkerCompleted += delegate(object sender, RunWorkerCompletedEventArgs er) 
//			{ 
//				Console.WriteLine(er.Result.ToString()); 
//			};
			
			MainWindow mainWindow = new MainWindow();
			FoldersSizeModel fsModel = new FoldersSizeModel();
			fsModel.RootPath = @"C:\Documents and Settings\XPMUser\My Documents";
			
			
			MainViewModel mainViewModel = new MainViewModel(
			 	new MainModel()
				{ 
					Model = fsModel,
				}
			 );
			
			mainWindow.DataContext = mainViewModel;
				
			
			this.MainWindow = mainWindow;
			this.MainWindow.Show();
		}
	}
}